/*
 * @Date: 2022-04-05 20:38:36
 * @LastEditors: sailornpg
 * @LastEditTime: 2022-04-22 20:47:15
 * @FilePath: \weibovue\src\main.ts
 * @Description: 入口文件
 */
type Events = {
  foo: string;
  bar?: number;
};
import { createApp } from "vue";
import router from "./router/index";
import store from "./store/index";
import App from "./App.vue";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import mitt from "mitt";
//api
import api from "./api/index";
const bus = mitt<Events>();
const app = createApp(App);
app.config.globalProperties.$api = api;
app.config.globalProperties.$bus = bus;
app.use(router);
app.use(store);
app.use(ElementPlus);
app.mount("#app");
